Package com.cisco.pt.ipc.sim.impl
Class StaticMacImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.StaticMacImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPort()intvoidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetMacAddress(MACAddress macAddress) voidvoidsetVlanId(int vlanId) Methods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVector
-
Field Details
-
macAddress
-
vlanId
protected int vlanId -
port
-
-
Constructor Details
-
StaticMacImpl
public StaticMacImpl()
-
-
Method Details
-
getMacAddress
- Specified by:
getMacAddressin interfaceStaticMac- Returns:
- MACAddress Returns a MACAddress
-
setMacAddress
- Specified by:
setMacAddressin interfaceStaticMac- Parameters:
macAddress- Takes in a parameter of macAddress
-
getVlanId
public int getVlanId() -
setVlanId
public void setVlanId(int vlanId) -
getPort
-
setPort
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Specified by:
readin classIPCDataImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-